﻿using Csla;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntGuayasSLA.BL.Listas.Criterias
{
    [Serializable]
    public class GlobalCriteria : BusinessBase<GlobalCriteria>
    {
        #region Business Methods

        public static readonly PropertyInfo<string> IdProperty = RegisterProperty<string>(c => c.Id);
        public string Id
        {
            get { return GetProperty(IdProperty); }
            set { SetProperty(IdProperty, value); }
        }

        public static readonly PropertyInfo<string> ModuloProperty = RegisterProperty<string>(c => c.Modulo);
        public string Modulo
        {
            get { return GetProperty(ModuloProperty); }
            set { SetProperty(ModuloProperty, value); }
        }
        public static readonly PropertyInfo<Boolean> IfExpedienteProperty = RegisterProperty<Boolean>(c => c.IfExpediente);
        public Boolean IfExpediente
        {
            get { return GetProperty(IfExpedienteProperty); }
            set { SetProperty(IfExpedienteProperty, value); }
        }
        #endregion

        #region Factory Methods

        public static GlobalCriteria NewGlobalCriteria()
        {
            return DataPortal.Create<GlobalCriteria>();
        }

        private GlobalCriteria()
        { /* Require use of factory methods */ }

        #endregion


    }
    [Serializable]
    public class ModuloCriteria : BusinessBase<ModuloCriteria>
    {
        #region Business Methods

        public static readonly PropertyInfo<string> IdProperty = RegisterProperty<string>(c => c.Id);
        public string Id
        {
            get { return GetProperty(IdProperty); }
            set { SetProperty(IdProperty, value); }
        }

        public static readonly PropertyInfo<string> ModuloProperty = RegisterProperty<string>(c => c.Modulo);
        public string Modulo
        {
            get { return GetProperty(ModuloProperty); }
            set { SetProperty(ModuloProperty, value); }
        }
        #endregion

        #region Factory Methods

        public static ModuloCriteria NewModuloCriteria()
        {
            return DataPortal.Create<ModuloCriteria>();
        }

        private ModuloCriteria()
        { /* Require use of factory methods */ }

        #endregion


    }
    [Serializable]
    public class ModuloRequeridoCriteria : BusinessBase<ModuloRequeridoCriteria>
    {
        #region Business Methods

        public static readonly PropertyInfo<string> IdProperty = RegisterProperty<string>(c => c.Id);
        public string Id
        {
            get { return GetProperty(IdProperty); }
            set { SetProperty(IdProperty, value); }
        }

        public static readonly PropertyInfo<string> ModuloProperty = RegisterProperty<string>(c => c.Modulo);
        public string Modulo
        {
            get { return GetProperty(ModuloProperty); }
            set { SetProperty(ModuloProperty, value); }
        }
        public static readonly PropertyInfo<string> RequeridoProperty = RegisterProperty<string>(c => c.Requerido);
        public string Requerido
        {
            get { return GetProperty(RequeridoProperty); }
            set { SetProperty(RequeridoProperty, value); }
        }

        #endregion

        #region Factory Methods

        public static ModuloRequeridoCriteria NewModuloCriteria()
        {
            return DataPortal.Create<ModuloRequeridoCriteria>();
        }

        private ModuloRequeridoCriteria()
        { /* Require use of factory methods */ }

        #endregion


    }


}
